QT += widgets opengl openglwidgets charts  gui-private

TEMPLATE        = lib           #表示这个makefile是一个lib的makefile
CONFIG         += plugin        #应用程序是一个插件
TARGET          = QtSample       #生成插件的名称

INCLUDEPATH += ../inc
LIBS += ../lib/*.a

INCLUDEPATH += E:/00c/lib/opencv/opencv480lib/include
LIBS += E:/00c/lib/opencv/opencv480lib/x64/mingw/lib/*.a

win32:LIBS += -lOpengl32 -lglu32
unix:LIBS += -lglut -lGLU


HEADERS += \
    Plugin.h \
    processwin.h


SOURCES += \
    Plugin.cpp \
    Sample.cpp \
    processwin.cpp \
    processwinFun.cpp



DISTFILES += \
    plugin.json  #插件描述文件

win32 {
        CONFIG(debug, debug|release) {
            DESTDIR  = ../bin/plugins
        } else {
            DESTDIR  = ../release/plugins
        }
}#生成插件的目录

msvc {
    #QMAKE_CFLAGS += /utf-8
    QMAKE_CXXFLAGS += /utf-8
}
QMAKE_CXXFLAGS +=  -Wno-unused-parameter -Wno-unused-variable -Wno-switch

FORMS += \
    processwin.ui
